package com.dgt.trade.service.impl;

import com.dgt.trade.dao.SysAreaDao;
import com.dgt.trade.entitys.SysArea;
import com.dgt.trade.service.ISysareaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysareServiceImpl implements ISysareaService {
	
	@Autowired
	private SysAreaDao sysAreaDao;


	@Override
	public List<SysArea> getAreaList(int codeLength) {
		return sysAreaDao.getAreaList(codeLength);
	}

	@Override
	public String getNameByCode(String code){
		return sysAreaDao.getNameByCode(code);
	}

}
